package com.generic.demo1;

/**
 * @ClassName Pet
 * @Description 宠物类
 * @Author Kx
 * @Date 2025/3/25 18:57
 * @Version 1.0
 */
public abstract class Pet {
    private String name;
    private String trait; // 性格

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTrait() {
        return trait;
    }

    public void setTrait(String trait) {
        this.trait = trait;
    }
}
